package com.itheima.Day5;

import java.util.Random;

public class Dome2 {
    public static void main(String[] args) {
        int[] arr = new int[10];
        Random r = new Random();
        for (int i = 0; i < arr.length; i++) {
            int num = r.nextInt(100 + 1);
            if (num%2==1) {
                arr[i] = num;
                System.out.print(arr[i]+" ");
            }else {
                i--;
            }
        }

    }
}
